<template>
  <h2>组件事件</h2>
  <child @abc="fn"></child>
</template>

<script>
import Child from "./07-Child.vue";

export default {
  components: {
    Child,
  },
  setup() {
    const fn = (n) => {
      console.log("fn", n);
    };

    return { fn };
  },
};
</script>
